<include file="Public/min-header" />
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <nav class="navbar navbar-default">
                            <div class="collapse navbar-collapse">
                               
                                   
                                    <div class="form-group pull-right">
                                        <a href="{:U('children_equipment_add')}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> 添加设备</a>
                                    </div>
                                
                            </div>
                        </nav>
                    </div>
                    <div class="box-body">
                        <div class="row">
                            <div class="col-sm-12">
                                <table id="list-table" class="table table-bordered table-striped dataTable">
                                    <thead>
                                        <tr role="row">
                                            <th>设备id</th>
                                            
                                            <th>设备名称</th>
                                            
                                            <th>设备图片</th>
                                            <!-- <th>设备链接</th> -->
                                            <!-- <th>新窗口</th> -->
                                            <!-- <th>是否显示</th> -->
                                            <!-- <th>排序</th> -->
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <foreach name="list" item="vo" key="k">
                                            <tr role="row">
                                                <td>{$vo[id]}</td>
                                                <td>{$vo.name}</td>
                                                
                                                
                                                <td><img alt="" src="{$vo.img}" width="80px" height="50px"></td>
                                                <!-- 设备链接 -->
                                                <!-- <td>{$vo.ad_link}</td> -->
                                                <!-- 新窗口 -->
                                               <!--  <td>
                                                    <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo[target] eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('ad','ad_id','{$vo.ad_id}','target',this)" />
                                                </td> -->
                                                <!-- <td>
                                                    <img width="20" height="20" src="__PUBLIC__/images/<if condition='$vo[enabled] eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('ad','ad_id','{$vo.ad_id}','enabled',this)" />
                                                </td> -->
<!--                                                 <td>
                                                    <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="updateSort('ad','ad_id','{$vo.ad_id}','orderby',this)" size="4" value="{$vo.orderby}" class="input-sm" />
                                                </td> -->
                                                <td>
													<a href="{:U('Admin/Goods/adult_equipment_save',array(id =>$vo[id]))}" class="btn btn-primary" href="javascript:void(0)"><i class="fa fa-pencil"></i></a>

													<a class="btn btn-info" href="{:U('Admin/Goods/get_qrcode',array('id'=>$vo[id],'type'=>'2'))}"><i class="fa fa-qrcode"></i></a>
													
												<a href="{:U('Admin/Goods/adult_equipment_delete',array(id =>$vo[id]))}" class="btn btn-danger" href="javascript:void(0)"><i class="fa fa-trash-o"></i></a>	
												</td>
                                            </tr>
                                        </foreach>
                                    </tbody>
                                    <tfoot>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6 text-left">
                                <button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
                            </div>
                            <div class="col-sm-6 text-right">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <script>
    </script>
</div>
</body>

</html>